#!/bin/sh
BASEDIR=wickdd
BINDIR=$BASEDIR/bin
DOCDIR=$BASEDIR/doc
VERSION=`cat version.txt`

( cd slategen && make )
rm -f $BASEDIR-*-$VERSION.tar.gz

mkdir -p $BINDIR $DOCDIR
install -s qtassy/build/Release/wickqtassy slategen/slategen $BINDIR
install c4d/*.py $BINDIR
install ../LICENSE $DOCDIR
tar cvzf $BASEDIR-osx-$VERSION.tar.gz $BASEDIR
rm $BINDIR/*

install rss/*.py rss/makerss $BINDIR
tar cvzf $BASEDIR-posix-$VERSION.tar.gz $BASEDIR
rm -r $BASEDIR
